#include "Cubo2D.h"

Cubo2D::Cubo2D(PD3DEngine * e)
{
	vertex2d1[0] = - 250.0f;
	vertex2d1[1] = 250.0f;
	vertex2d1[2] = 1.0f;
	
	vertex2d2[0] = 250.0f;
	vertex2d2[1] = 250.0f;
	vertex2d2[2] = 1.0f;
	
	vertex2d3[0] = 250.0f;
	vertex2d3[1] = -250.0f;
	vertex2d3[2] = 1.0f;
	
	vertex2d4[0] = - 250.0f;
	vertex2d4[1] = 250.0f;
	vertex2d4[2] = 1.0f;
	
	vertex2d5[0] = - 250.0f;
	vertex2d5[1] = - 250.0f;
	vertex2d5[2] = 1.0f;
	
	vertex2d6[0] = 250.0f;
	vertex2d6[1] = - 250.0f;
	vertex2d6[2] = 1.0f;
	
	engine = e;
}
void Cubo2D::printCubo(){
	engine->draw2DTriangle(vertex2d1, vertex2d2, vertex2d3);
	engine->draw2DTriangle(vertex2d4, vertex2d5, vertex2d6);
}
Cubo2D::~Cubo2D()
{
}
